package com.hzt.agprosaleplatform.service;

import com.hzt.agprosaleplatform.entity.FinanceApplication;

import java.util.List;

public interface FinanceApplicationService {
    FinanceApplication createApplication(FinanceApplication application);
    FinanceApplication getApplicationById(Integer financeId);
    List<FinanceApplication> getApplicationsByUserId(String userId);
    List<FinanceApplication> getApplicationsByStatus(Integer status);
    boolean updateApplicationStatus(Integer financeId, Integer status, String auditOpinion);
    boolean approveApplication(Integer financeId, String auditOpinion);
    boolean rejectApplication(Integer financeId, String auditOpinion);
    boolean cancelApplication(Integer financeId, String cancelReason);
}
